ThreadLocalFormatCache

class ThreadLocalFormatCache(val capacity: Int = 20, baseCacheFactory: () -> FormatCache = { DefaultFormatCache() }) : FormatCache

Native implementation of a format cache using threadLocals. Note that this uses a fifo queue of caches (up to capacity count) and it will evict the oldest element (independent of usage)

Constructors

Link copied to clipboard
constructor(capacity: Int = 20, baseCacheFactory: () -> FormatCache = { DefaultFormatCache() })

Properties

Link copied to clipboard